﻿using UnityEngine;
using System.Collections;

public static class StringTools  {

	public static string ReplaceAt(this string input, int index, char newChar)
	{
	    if (input == null)
	    {
			Debug.LogError("NO INPUT");
	        //throw new ArgumentNullException("input");
	    }
	    char[] chars = input.ToCharArray();
	    chars[index] = newChar;
	    return new string(chars);
	}
}
